import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs';
import {createRouter,createWebHashHistory} from 'vue-router';


const routes = [
    {
        path: '/',
        component: () => import("@/views/Main.vue"),
        redirect:'home',
        children:[
            {
                path:'home',
                name:'home',
                component:()=>import("@/views/Home.vue")
            },
            {
                path:'user',
                name:'user',
                component:()=>import("@/views/User.vue")
            }
        ]
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;